package com.gtamos.dicebot.gambling.game;

import java.math.BigDecimal;

import com.gtamos.dicebot.constants.DiceBotConstants;


public abstract class AbstractGambling {
	
	public abstract Long getGUESS_LOW();
	public abstract Long getGUESS_HIGH();
	public abstract Double getCHANCE_TO_WIN();
	public abstract Double getCHANCE_TO_LOSS();
	public abstract BigDecimal getBET_MULTIPLIER();
	public abstract BigDecimal getBET_INVERSION_PERCENT();
	public abstract BigDecimal getEXTRA_SATOSHIS_MULTIPLIER();
	
	public Integer getMaxConsecutiveLossesSupport(Double chanceToLoss){
		return new Double (Math.log(DiceBotConstants.SAFE_PROBABILITY.doubleValue())/Math.log(chanceToLoss)).intValue();
	}

}
